// app.js
App({
  onLaunch() {
    let that = this
    // 获取系统参数
    wx.getSystemInfo({
      success: function (res) {
        that.globalData.statusBarHeight = res.statusBarHeight
      }
    })
    that.globalData.menu = wx.getMenuButtonBoundingClientRect() 
  },
  globalData: {
    statusBarHeight: 0,
    menu: 0
  }
})
